package com.scau.yangsuiyu.estore;

import com.scau.yangsuiyu.estore.view.MySplash;
import com.scau.yangsuiyu.estore.view.MainStageView;
import de.felixroske.jfxsupport.AbstractJavaFxApplicationSupport;
import javafx.scene.image.Image;
import javafx.stage.Stage;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * @author suiyu_yang
 * @description 整个程序的入口
 * @date 2019-04-23 17:59
 * @email suiyu_yang@163.com
 */
@SpringBootApplication
public class MainApplication extends AbstractJavaFxApplicationSupport {


    public static void main(String[] args) {
        launch(MainApplication.class, MainStageView.class,new MySplash(), args);
    }


    @Override
    public void start(Stage stage) throws Exception {
        stage.getIcons().add(new Image("/image/estore-icon.png"));
        super.start(stage);
    }
}
